//
//  UIImage+Gif.h
//  boot
//
//  Created by Demi on 14/03/2017.
//  Copyright © 2017 Azazie. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Gif)

/// can use keyframe animation.
+ (CFArrayRef)GIFImagesWithContentsOfFile:(NSString *)path duration:(out NSTimeInterval *)ti;
+ (NSArray<UIImage *> *)imagesWithContentsOfFile:(NSString *)path duration:(out NSTimeInterval *)ti;

+ (UIImage *)gifImageWithContentsOfFile:(NSString *)path;

+ (UIImage *)circleImageWithSize:(CGSize)size color:(UIColor *)color borderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor;
+ (UIImage *)squareImageWithBorderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor oldImage:(UIImage *)inputImage;
@end
